Stock price prediction is a challenging task due to the highly volatile and nonlinear nature of financial markets. This study explores various machine learning models, including traditional approaches such as Random Forest and XGBoost, deep learning models like Long Short-Term Memory (LSTM) networks and Gated Recurrent Units (GRU), and hybrid architectures incorporating external indicators. The models are trained on historical stock price data combined with external financial indicators to improve predictive accuracy. Performance is evaluated using key metrics such as RMSE, Mean Squared Error (MSE) and R-squared scores. Results indicate that researcher work with won generated dataset and compare in different traditional ML models-Random Forest / XGBoost, Support Vector Regression (SVR), etc. Deep Learning models- LSTM (Long Short-Term Memory), GRU (Gated Recurrent Unit), CNN (Convolutional Neural Networks) for Time-Series, Transformers (e.g., Informer, Time-Series Transformer) with external indicators, outperform traditional machine learning methods in capturing market trends.
Introduction
The equity market plays a crucial role in capital movement and economic growth. Predicting stock prices accurately is challenging due to their volatile and non-stationary nature, requiring advanced regression and classification models. This study focuses on structured stock data from Yahoo Finance and compares various machine learning (ML) and deep learning models for stock price prediction using evaluation metrics such as RMSE, MSE, and R².
A literature review highlights recent models like CEEMDAN-LSTM, SVR with MEMD, AdaBoost variants, and transformer-based approaches, each balancing predictive accuracy with computational complexity. Notably, LSTM-based models often outperform traditional ML models, especially when combined with feature-rich inputs.
The proposed system introduces a multi-input LSTM model that incorporates external indicators — technical indicators (RSI, MACD, moving averages), macroeconomic data, news sentiment, and market sentiment — alongside stock price and volume data. This approach aims to capture broader market influences, using LSTM’s gating mechanisms to better predict stock price movements by processing multiple data streams simultaneously.
Overall, integrating diverse data sources with advanced deep learning architectures holds promise for improving the accuracy and reliability of short-term stock price predictions.
Conclusion
The LSTM-based multi-input model enhances stock price prediction by combining historical stock prices and external indicators. This approach provides a more comprehensive view of market trends, leading to better predictive performance. As a technology in the eld of deep learning, neural network can solve non-linear problems well. LSTM neural network is optimized on traditional neural network and introduces the concept of \"gate\", which enhances the long-term memory ability of the model, which enhances its generalization ability. this paper constructs a stock price prediction model based on LSTM with Multi Input model and also chooses the use of singlefeature and multi-feature input models to seek better prediction results. Future scope will be Hyperparameter tuning, Feature selection, try (CNNLSTM) convolutional layers for better feature extraction.